package com.zengdada.authority.model;

import java.util.Date;
import javax.persistence.*;

@Table(name = "SYOAUTH.APP_USER_ROLE_REL")
public class AppUserRoleRel {
    /**
     * id
     */
    @Id
    @Column(name = "APP_USER_ID")
    private String appUserId;

    /**
     * app_role_id
     */
    @Id
    @Column(name = "APP_ROLE_ID")
    private String appRoleId;

    /**
     * 创建时间
     */
    @Column(name = "CREATE_TIME")
    private Date createTime;

    /**
     * 状态
     */
    @Column(name = "STATE")
    private Integer state;

    /**
     * 获取id
     *
     * @return APP_USER_ID - id
     */
    public String getAppUserId() {
        return appUserId;
    }

    /**
     * 设置id
     *
     * @param appUserId id
     */
    public void setAppUserId(String appUserId) {
        this.appUserId = appUserId == null ? null : appUserId.trim();
    }

    /**
     * 获取app_role_id
     *
     * @return APP_ROLE_ID - app_role_id
     */
    public String getAppRoleId() {
        return appRoleId;
    }

    /**
     * 设置app_role_id
     *
     * @param appRoleId app_role_id
     */
    public void setAppRoleId(String appRoleId) {
        this.appRoleId = appRoleId == null ? null : appRoleId.trim();
    }

    /**
     * 获取创建时间
     *
     * @return CREATE_TIME - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取状态
     *
     * @return STATE - 状态
     */
    public Integer getState() {
        return state;
    }

    /**
     * 设置状态
     *
     * @param state 状态
     */
    public void setState(Integer state) {
        this.state = state;
    }
}